import '@/assets/css/reset.min.css';
import '@/index.less';
import '@babel/polyfill';
import sum from '@/A';
import { average } from '@/B';
import axios from 'axios';

let total = sum(10, 20, 30, 40);
console.log('求和：', total);

let avg = average(10, 20, 30, 40);
console.log('求平均：', avg);

axios.get('/A/subscriptions/recommended_collections')
    .then(response => response.data)
    .then(value => {
        console.log('简书:', value);
    });
axios.get('/B/news/latest')
    .then(response => response.data)
    .then(value => {
        console.log('知乎:', value);
    });

/*
 http://127.0.0.1:8080/A/subscriptions/recommended_collections
    target: 'https://www.jianshu.com/asimov'
    真正请求地址： https://www.jianshu.com/asimov/subscriptions/recommended_collections
    
 http://127.0.0.1:8080/B/news/latest
    target: 'https://news-at.zhihu.com/api/4'
    真正请求地址：https://news-at.zhihu.com/api/4/news/latest
 */